package com.zyc.decorateMode.clothes;

/**
 * @author zyc
 * @create 2022--06--15 17:18
 */
public class Main {
    public static void main(String[] args) {
        Person person = new Person("小周");
        BigTShirt bigTShirt = new BigTShirt();
        OldShoes oldShoes = new OldShoes();
        Jean jean = new Jean();

        //装饰过程
        jean.decorate(person);
        bigTShirt.decorate(jean);
        oldShoes.decorate(bigTShirt);
        oldShoes.showSelf();

        System.out.println("-----------");
        System.out.println("第二种装扮");
        oldShoes.decorate(person);
        oldShoes.showSelf();
    }
}
